//
//  LXSalaryTableViewCell.m
//  ZuLinProject
//
//  Created by bancheng on 2022/9/5.
//  Copyright © 2022 LX_App. All rights reserved.
//

#import "LXSalaryTableViewCell.h"
#import "LXSalaryModel.h"
@implementation LXSalaryTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.backView addCorner:4];
    
}






- (void)setSalaryModel:(LXSalaryModel *)salaryModel{
    _salaryModel = salaryModel;
    
    self.label1.text = [NSString stringWithNull:salaryModel.carNum];
    
    self.label2.text = [NSString stringWithFormat:@"品牌车型    %@",salaryModel.model];
    [self.label2 addAttributes:TextAttrCorlor(ColorWithAAAAAA) forString:@"品牌车型"];
    
    self.label3.text = [NSString stringWithFormat:@"返佣统计时间   %@ 至 %@",salaryModel.startDate,salaryModel.endDate];
    [self.label3 addAttributes:TextAttrCorlor(ColorWithAAAAAA) forString:@"返佣统计时间"];
    
    self.label4.text = [NSString stringWithFormat:@"返佣金额   %@",[NSString toTen:salaryModel.amount]];
    [self.label4 addAttributes:TextAttrCorlor(ColorWithAAAAAA) forString:@"返佣金额"];
    
    
    self.label5.text = [NSString stringWithFormat:@"创建时间   %@",salaryModel.createTime.length>10?[salaryModel.createTime substringToIndex:10]:salaryModel.createTime];
    [self.label5 addAttributes:TextAttrCorlor(ColorWithAAAAAA) forString:@"创建时间"];
    
    self.label6.text = [NSString stringWithFormat:@"备注   %@",[NSString stringWithNull:salaryModel.remark]];
    [self.label6 addAttributes:TextAttrCorlor(ColorWithAAAAAA) forString:@"备注"];
    
}
@end
